﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Protocol
{
    public class CheckResp : Command
    {
        public const string CHECKACK_SUCCESS = "SUCCESS";
        public const string CHECKACK_NONE = "NONE";

        public string AckCode
        {
            get;
            set;
        }

        public string Operation
        {
            get;
            set;
        }

        public double OffsetX
        {
            get;
            set;
        }

        public double OffsetY
        {
            get;
            set;
        }

        public string DetailMessage
        {
            get;
            set;
        }
        public string Process
        {
            get;
            set;
        }
        public ControlReq.OperationType GetOperationType()
        {
            return (ControlReq.OperationType)Enum.Parse(typeof(ControlReq.OperationType), Operation);
        }
    }
}
